import mongoose from 'mongoose'
import config from '../config'
mongoose.Promise = global.Promise
mongoose.connect(config.db)
module.exports = mongoose